Skip to content

Fix #2450#2475

Closed
ImmanuelHaffner wants to merge 1 commit intoWebAssembly:masterfrom
ImmanuelHaffner:libbinaryen-monolithic
Closed

Fix #2450#2475
ImmanuelHaffner wants to merge 1 commit intoWebAssembly:masterfrom
ImmanuelHaffner:libbinaryen-monolithic

Conversation

@ImmanuelHaffner
Copy link
Contributor

Collect all object files from the object libraries in a CMake variable using the $<TARGET_OBJECTS:objlib> syntax. Use this variable when
adding libbinaryen as static or shared library. Additionally, use the
variable with the object files to simplify the TARGET_LINK_LIBRARIES
commands: add the object libraries to the sources of executables and
drop the use of our libraries in TARGET_LINK_LIBRARIES. (Object
libraries cannot be linked but must be used as sources. See
https://cmake.org/pipermail/cmake/2018-June/067721.html)

This PR is a follow up on #2472

using the `$<TARGET_OBJECTS:objlib>` syntax.  Use this variable when
adding `libbinaryen` as static or shared library.  Additionally, use the
variable with the object files to simplify the `TARGET_LINK_LIBRARIES`
commands: add the object libraries to the sources of executables and
drop the use of our libraries in `TARGET_LINK_LIBRARIES`.  (Object
libraries cannot be linked but must be used as sources.  See
https://cmake.org/pipermail/cmake/2018-June/067721.html)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant